import 'package:flutter_taotaoshipin/model/drama_interact_info_entity.dart';
import 'package:flutter_taotaoshipin/model/drama_list_entity.dart';
import 'package:flutter_taotaoshipin/model/drama_main_info_entity.dart';
import 'package:flutter_taotaoshipin/model/interact_user_sign_in_detail_entity.dart';
import 'package:flutter_taotaoshipin/model/interact_user_task_list_entity.dart';
import 'package:flutter_taotaoshipin/model/user_drama_auth_list_entity.dart';

class DramaDetailState {
  // 索引
  late int pageIndex;
  // 是否显示返回按钮
  late bool showBackBtn;
  // 主剧信息
  late DramaMainInfoEntity? mainInfoEntity;
  // 分集列表
  late List<DramaListEntity> dramaListEntityList;
  // 授权分集列表
  late List<UserDramaAuthListEntity> userDramaAuthListEntityList;
  // 交互信息
  late DramaInteractInfoEntity dramaInteractInfoEntity;

  // 签到
  late InteractUserSignInDetailEntity? signInDetailEntity;
  // 任务
  late List<InteractUserTaskListEntity> taskList;

  DramaDetailState() {
    ///Initialize variables
    pageIndex = 0;
    showBackBtn = false;
    mainInfoEntity = null;
    dramaListEntityList = [];
    userDramaAuthListEntityList = [];
    dramaInteractInfoEntity = DramaInteractInfoEntity();

    signInDetailEntity = null;
    taskList = [];
  }
}
